﻿//-----------------------------------------------------------------------
// <copyright file="VisitHistoryFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.LogModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.MainBoundedContext.SecurityModule;

    public static class VisitHistoryFactory
    {
        public static VisitHistory CreateVisitHistory(
                                        UserAccount interviewee,
                                        string IP,
                                        DateTime visitTime,
                                        DateTime lastVisitTime,
                                        UserAccount visitor,
                                        DateTime editTime,
                                        string editUser)
        {
            VisitHistory visitHistory = new VisitHistory();
            visitHistory.EditTime = editTime;
            visitHistory.EditUser = editUser;
            visitHistory.Interviewee = interviewee;
            visitHistory.IP = IP;
            visitHistory.LastVisitTime = lastVisitTime;
            visitHistory.Visitor = visitor;
            visitHistory.VisitTime = visitTime;

            return visitHistory;

        }
    }
}
